<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<%
String ctype = (String)request.getParameter("stype");
if (ctype == null){
	%>
null
	<%	
	}
else {
if (ctype.trim().equals("all")){
%>
		<p>all</p>
<%	
}
if (ctype.trim().equals("byguest")){
%>
		<p>Search by guest</p>
	<form id="form1" name="form1" method="post" action="">
	  <p>First Name:
	    <input type="text" name="textfield" id="textfield" />
	</p>
	  <p>Last Name:
	    <input type="text" name="textfield2" id="textfield2" />
	</p>
	  <p>Contact Number:
	    <input type="text" name="textfield3" id="textfield3" />
	  </p>
	</form>

<%
}
if (ctype.trim().equals("bytable")){
%>
		<p>Search by table</p>
	<form id="form1" name="form1" method="post" action="">
	  <p>First Name:
	    <input type="text" name="textfield" id="textfield" />
	</p>
	  <p>Last Name:
	    <input type="text" name="textfield2" id="textfield2" />
	</p>
	  <p>Contact Number:
	    <input type="text" name="textfield3" id="textfield3" />
	  </p>
	</form>

<%
}
}
%>
</body>
</html>
